﻿
using MailBox.App_Code;
using MailBox.App_Code.dto;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace famails
{
    public partial class autodirection : System.Web.UI.Page
    {
        DataUtils utils = new DataUtils();
        protected void Page_Load(object sender, EventArgs e)
        {
            string param = Request.QueryString["enc"];
            if (param != null)
            {
                //lblResult.Text = FaMailUtils.QueryStringModule.Decrypt(param);//.Replace("=","")
               // param = FaMailUtils.QueryStringModule.Decrypt(param);
               //string[] paras = param.Split('+');

               //UserLoginDTO user = utils.GetByUserByEmail(paras[0]);
               //if (user != null)
               //{
               //    Session["EmailLogin"] = user.isClient ? user.Client.Email : user.Account.Email;
               //    Session["UserLogin"] = user;
               //    Response.Redirect("default.aspx");
               //}

                Response.Redirect("login.aspx");
            }
        }
    }
}